Creating Spring Bean Class
From Documentation
This documentation is for an older version of ZK. For the latest one, please click here.
For OOP programming, you have to define a DataSource interface:
DataSource.java
package test;
public interface DataSource
{
java.util.List getElementsList();
}
and its implementation:
DataSourceImpl.java
package test;
import java.util.*;
public class DataSourceImpl implements DataSource
{
public List getElementsList()
{
List list = new ArrayList();
list.add("Tom");
list.add("Henri");
list.add("Jim");
return list;
}
}